package org.lds.hotkey.console.business.appinstance.model.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.StringUtils;
import org.lds.hotkey.common.model.pojo.PageCondition;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 分页 - 请求
 *
 * @author lidongsheng
 * @since 2024-06-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class AppInstanceBaseListPageRequest extends PageCondition implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 大于ID
     */
    private Long gtId;

    /**
     * app主键
     */
    private Long appId;

    /**
     * IP
     */
    private String ip;

    public void setIp(String ip) {
        this.ip = StringUtils.trimToNull(ip);
    }

    /**
     * 端口
     */
    private Integer port;

    private Boolean enable;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

}
